from api.basic_api import BaseBuyerApi


class SetAddressIdApi(BaseBuyerApi):
    def __init__(self,address_id):
        super().__init__()  # 继承父类属性
        self.url = f'{self.host}/trade/checkout-params/address-id/{address_id}'
        self.method='post'
class PayTypeApi(BaseBuyerApi):
    def __init__(self,payment_type='COD'):
        super().__init__()  # 继承父类属性
        self.url = f'{self.host}/trade/checkout-params/payment-type'
        self.method='post'